using System.IO;
using Framework.Core.Io;

namespace Framework.Core.Process.Tasks
{
    internal struct Command : ICommand
    {
        public Command(string fileName, string arguments)
            : this()
        {
            Arguments = arguments;
            FileName = fileName;
        }

        public string Name { get { return Path.GetFileNameWithoutExtension(FileName); } }
        public string FileName { get; private set; }
        public string Arguments { get; private set; }
        public bool IsNative { get { return true; } }

        public override string ToString()
        {
            return string.Format("c: {0} {1}", Name, Arguments);
        }
    }
}